@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="channelInfoForm">

            <input type="hidden" id="id" value="${channel.id}">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="channelname" name="渠道名称" underline="true" value="${channel.channelname}"/>

                    <#input id="cName" name="上级渠道" readonly="readonly" hidden="pid"
                            hiddenValue="${channel.pid}" value="${cName}"
                            clickFun="ChannelInfoDlg.showChannelSelectTree(); return false;"
                            style="background-color: #ffffff !important;"/>

                </div>
                <div class="col-sm-6">
                    <#input id="remarks" name="备注" underline="true" value="${channel.remarks}"/>
                    <#input id="num" name="排序" underline="true" value="${channel.num}"/>
                </div>
            </div>

            <!-- 父级渠道的选择框 -->
            <div id="parentChannelMenu" class="menuContent"
                 style="display: none; position: absolute; z-index: 200;">
                <ul id="parentChannelMenuTree" class="ztree tree-box" style="width: 245px !important;"></ul>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ChannelInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ChannelInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/basicData/channel/channel_info.js"></script>
@}
